﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using Automobile.service.BLL;
using Automobile.service.Model;

namespace Automobile.service.UI.Handler
{
    /// <summary>
    /// HandlerSearchM 的摘要说明
    /// </summary>
    public class HandlerSearchM : IHttpHandler
    {
        StatisticsShipmentsBLL bll = new StatisticsShipmentsBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string SYear = context.Request["SYear"];
            string TimeStart = context.Request["TimeStart"];
            string TimeEnd = context.Request["TimeEnd"];
            List<SearchMonth> list = bll.SearchM(SYear,TimeStart, TimeEnd);
            context.Response.Write(new System.Web.Script.Serialization.JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }.Serialize(list));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}